package com.ftcs.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ftcs.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    List<User> getUserList(@Param("page") Page<?> page);

    User getUserByid(int id);

    void deleteuser(int uid);

    void deleteuserrole(int uid);

    void adduser(User user);

    void updateByPrimaryKeySelective(User user);

    int getUidByusername(String username);

    User getUserByUserName(@Param(value = "userName") String userName);
}
